package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
//封装用户页面输入的数据
@ToString
public class QueryObject {
    //当前页
    private Integer currentPage = 1;
    //每页的条数
    private Integer pageSize = 5;

    private Integer getStart() {
        return (currentPage - 1) * pageSize;
    }
}
